package chpt08;

import java.io.ByteArrayOutputStream;
import java.io.IOException;

public class ByteArrayOutputStreamTest {

	public static void main(String[] args) throws IOException{
		byte[] contents = {0x48,0x45,0x4C,0x4C,0x4F};
		try(ByteArrayOutputStream out = new ByteArrayOutputStream()){
		out.write(contents);
		System.out.println(out.toString());
		}
	}
}
